import { Module } from '@nestjs/common';
import { FilesController } from './files.controller';
import { FilesService } from './files.service';
import { ClientsModule, Transport } from '@nestjs/microservices';
@Module({
  imports:[
    ClientsModule.registerAsync([{
        name: 'STORE_SERVICE',
        useFactory: () => ({
            transport: Transport.TCP,
            options: {
                port: 9091,
                retryAttempts: 5,
                retryDelay: 3000
            }
        })
    }])
],
  controllers: [FilesController],
  providers: [FilesService],  
  exports: [FilesService]  

})
export class FilesModule {} 